/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 86183
 * Date: 2024-01-04
 * Time: 20:05
 */
public class Test {
    public static void main(String[] args) {
        MyArrayList myArrayList=new MyArrayList();
        myArrayList.add(1);
        myArrayList.add(2);
        myArrayList.add(3);
        myArrayList.add(4);
        myArrayList.add(5);
        myArrayList.display();
        System.out.println("==============");
/*        myArrayList.remove(1);
        myArrayList.remove(3);
        myArrayList.remove(5);
        myArrayList.display();
        */
      /*  System.out.println(myArrayList.get(0));
        System.out.println(myArrayList.get(2));
        System.out.println(myArrayList.get(4));*/
      /*  System.out.println(myArrayList.contains(1));
        System.out.println(myArrayList.contains(0));
        System.out.println(myArrayList.contains(7));*/

        System.out.println("===========");
        myArrayList.clear();
        myArrayList.display();

    }
}
